package com.gitee.secretopen.sso.service;

import cn.chenc.framework.core.model.response.ResponseVO;
import com.gitee.secretopen.sso.controller.form.PageInfo;
import com.gitee.secretopen.sso.db.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Author Xjt
 * @Date 2021/2/26 18:53
 * @Version 1.0
 */
public interface UserService extends IService<User>{

    PageInfo<User> page(User params);

    PageInfo<User> getByName(User params);

    User getLoginUser();

    boolean addUser(User user);

    List<User> downloadUsers();

    ResponseVO upload(MultipartFile file) throws Exception;
}
